<?php

namespace App\Http\Controllers\Blog;

use App\Http\Controllers\Controller;
use App\Http\Responses\Response;
use App\Models\Tag;
use Illuminate\Http\JsonResponse;
use Illuminate\Http\Request;

class TagController extends Controller
{
    public function list(): JsonResponse
    {
        $tags = Tag::all();
        return Response::resource_success($tags);
    }
}
